package com.chenyue.cm.account.service.impl;


import com.chenyue.cm.account.dao.JdAccountSourceMapper;
import com.chenyue.cm.account.domain.JdAccountSource;
import com.chenyue.cm.account.service.JdAccountSourceService;
import com.chenyue.cm.base.dao.LcBaseMapper;
import com.chenyue.cm.base.service.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;


/**
 * @author chenyue-cm
 */
@Service(value = "JdAccountSourceService")
public class JdAccountSourceServiceImpl extends BaseServiceImpl<JdAccountSource> implements JdAccountSourceService {

    private final JdAccountSourceMapper jdAccountSourceMapper;

    public JdAccountSourceServiceImpl(
            @Qualifier("jdAccountSourceMapper") JdAccountSourceMapper jdAccountSourceMapper
    ) {
        this.jdAccountSourceMapper = jdAccountSourceMapper;
    }

    @Override
    @Resource(name = "jdAccountSourceMapper")
    public void setBaseMapper(LcBaseMapper<JdAccountSource, Serializable> baseMapper) {
        this.baseMapper = baseMapper;
    }

}
